<script>
    function validate()
    {
        initValidate();
        commonValidate();
        // init
        $('contentSpan').innerHTML = "";
        $('resultContent0Span').innerHTML = "";
        $('resolutionSpan').innerHTML = "";
        try
        {
            if(FCKeditorAPI.GetInstance('content').GetXHTML(true).length == 0)
            {
                inValidated();
                $('contentSpan').innerHTML = "<font color='red'>必填</font>";
            }
//            if(FCKeditorAPI.GetInstance('resultContent0').GetXHTML(true).length == 0)
//            {
//                inValidated();
//                $('resultContent0Span').innerHTML = "<font color='red'>必填</font>";
//            }
//            if(FCKeditorAPI.GetInstance('resolution').GetXHTML(true).length == 0)
//            {
//                inValidated();
//                $('resolutionSpan').innerHTML = "<font color='red'>必填</font>";
//            }
//
//            if(FCKeditorAPI.GetInstance('content').GetXHTML(true).length >2000)
//            {
//                inValidated();
//                $('contentSpan').innerHTML = "<font color='red'>内容过多</font>";
//            }
//            if(FCKeditorAPI.GetInstance('resultContent0').GetXHTML(true).length >2000)
//            {
//                inValidated();
//                $('resultContent0Span').innerHTML = "<font color='red'>内容过多</font>";
//            }
//            if(FCKeditorAPI.GetInstance('resolution').GetXHTML(true).length >3000)
//            {
//                inValidated();
//                $('resolutionSpan').innerHTML = "<font color='red'>内容过多</font>";
//            }
        }
        catch(e)
        {

        }
        $('submitButton').disabled = !isAllValidated();
    }
</script>
        <tr >
            <td class="detailTD21" title="点击切换" align="right">
                <table >
                    <tr>
                        <td id="fck0" style="cursor:hand;font:bold" onclick = "changeFck(this)">题目&nbsp;&nbsp;<span id="contentSpan"></span></td>
                    </tr>
                    <tr>
                        <td id="fck1" style="cursor:hand" onclick = "changeFck(this)">答案&nbsp;&nbsp;<span id="resultContent0Span"></span></td>
                    </tr>
                    <tr>
                        <td id="fck2" style="cursor:hand" onclick = "changeFck(this)">解析&nbsp;&nbsp;<span id="resolutionSpan"></span></td>
                    </tr>
                </table>
            </td>
            <td class="detailTD22" colspan="5" id="fck0inst" style="display:">
					<%
						FCKeditor oFCKeditor ;
						oFCKeditor = new FCKeditor( request, "content" ) ;
						oFCKeditor.setBasePath( "/FCKeditor/" ) ;
						oFCKeditor.setValue(content);
						out.println( oFCKeditor.create() ) ;
					%>
            </td>
        
            <td class="detailTD22" colspan="5" id="fck1inst" style="display:none">
				<font color="red"><%= vr.getErrMess("resultContent")%></font>
				<%
						oFCKeditor = new FCKeditor( request, "resultContent0" ) ;
						oFCKeditor.setBasePath( "/FCKeditor/" ) ;
						oFCKeditor.setValue(resultContent0);
						out.println( oFCKeditor.create() ) ;
				%>
                <input type="hidden" name="result" value="0">
            </td>
            <td class="detailTD22" colspan="5" id="fck2inst" style="display:none">
                <%
						oFCKeditor = new FCKeditor( request, "resolution" ) ;
						oFCKeditor.setBasePath( "/FCKeditor/" ) ;
						oFCKeditor.setValue(resolution);
						out.println( oFCKeditor.create() ) ;
				%>
            </td>
        </tr>
		<input type="hidden" name="subjectQuestTypeId" value="<%= request.getParameter("subjectQuestTypeId")%>">
		<input type="hidden" name="questTypeCode" value="<%= request.getParameter("questTypeCode")%>">
        <input type="hidden" name="resultCount" value="1">